package gzj.mapper.moment;

import gzj.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author ☞☞ 祝晨轩
 * @DateTime ☞☞ 2019/7/13 8:26
 * 不积跬步，无以至千里；不积小流，无以成江海。
 * 键盘敲烂，月薪过万。
 */
public interface MomentMapper {
    public List<Moment> selectMomentList(Map map);



    public int getMomentCountBySchoolAndCategory(@Param("school_id")int school_id,
                                                 @Param("category_id")int category_id);

    public List<Moment> getMomentList(Map<String, Object> map);

    public List<School> getSchoolList();

    public List<Category> getCategoryList();

    String getCategoryByCategory_id(int category_id);

    String getSchoolBySchool_id(int school_id);

    int addLike(int moment_id);

    List<Moment> getMomentListBySchool(Map<String, Object> map);

    List<Moment> getMomentListByCategory(Map<String, Object> map);

    int addMoment(Moment moment);

    int del(int school_id);

    int addCommenNum(int moment_id);

    int addCommen(MomentComment momentComment);

    List<MomentComment> selectComment(int moment_id);

    Moment getMoment(int moment_id);

    List<Moment> getMomentByUid(int uid);
}
